import 'dart:io';

import 'package:shirne_app/widgets/webview/app_webview.dart';
import 'package:shirne_app/widgets/webview/desktop_webview.dart';

import '../webview.dart';

abstract class WebviewBridgeImpl extends WebviewBridge {
  WebviewBridgeImpl(String platform) : super(platform);

  factory WebviewBridgeImpl.init() {
    if (Platform.isAndroid || Platform.isIOS) {
      return AppWebviewBridgeImpl();
    }
    return DesktopWebviewBridgeImpl();
  }
}
